/*
 * $RCSfile: OracleAction.java,v $
 * $Revision: 1.1 $
 * $Date: 2017-05-17 $
 *
 * Copyright (C) 2008 Skin, Inc. All rights reserved.
 *
 * This software is the proprietary information of Skin, Inc.
 * Use is subject to license terms.
 */
package com.skin.webcat.action.oracle;

import java.io.IOException;

import javax.servlet.ServletException;

import com.skin.j2ee.action.BaseAction;
import com.skin.j2ee.annotation.UrlPattern;
import com.skin.j2ee.util.JsonUtil;

/**
 * <p>Title: OracleAction</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2006</p>
 * @author xuesong.net
 * @version 1.0
 */
public class OracleAction extends BaseAction {
    /**
     * 获取Oracle的安装目录
     * @throws ServletException
     * @throws IOException
     */
    @UrlPattern("/webcat/oracle/getHome.html")
    public void getHome() throws ServletException, IOException {
        /**
         * TODO: 使用sys连接
         * select * from dba_data_files;
         * select * from v$instance;
         * show parameter;
         */
        JsonUtil.success(this.request, this.response, "D:\\oracle\\product\\11.1.0\\db_1");
    }
}
